const cloud = require('wx-server-sdk')

cloud.init()


/**
 *
 * @param {object} event 参数对象
 * @param {object} content 包含了函数的调用信息和运行状态
 * @returns {Promise<{unionid: string, openid: string, appid: string}>}
 */
exports.main = async (event, content) => {
  // const wxContext = cloud.getWXContext()
  //
  // return {
  //   openid: wxContext.OPENID,
  //   appid: wxContext.APPID,
  //   unionid: wxContext.UNIONID,
  // }
  return {
    total: event.a + event.b
  }
}